package cn.git.agent.basic;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @description: log日志基础传输信息
 * @program: bank-credit-sy
 * @author: lixuchun
 * @create: 2024-03-18 03:16:02
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class BasicTransformInfo {

    /**
     * 日志开始时间
     */
    public Long begin;

    /**
     * 日志结束时间
     */
    public Long end;

    /**
     * 用户耗时
     */
    public Long userTime;

    /**
     * 错误信息
     */
    public String errorMsg;

    /**
     * 错误类型
     */
    public String errorType;

    /**
     * 创建时间
     */
    public Long createTime;

    /**
     * 请求key
     */
    public String keyId;

    /**
     * ip
     */
    public String ip;

    /**
     * 日志类型
     */
    public String logType;

    /**
     * 构造方法
     */
    public BasicTransformInfo(BasicTransformInfo modifyBegin) {
        this.begin = modifyBegin.begin;
        this.end = modifyBegin.end;
        this.userTime = modifyBegin.userTime;
        this.errorMsg = modifyBegin.errorMsg;
        this.errorType = modifyBegin.errorType;
        this.createTime = modifyBegin.createTime;
        this.keyId = modifyBegin.keyId;
    }

}
